﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MultipleUser.ascx.cs"
    Inherits="DocTes.Administration.Users.Controls.MultipleUser" %>
<table width="100%">
    <tr>
        <td>
            Archivo:
            <asp:FileUpload ID="FileUploadUsers" runat="server" CssClass="FileUpload" />
        </td>
        <td>
            <asp:Label ID="lblOculto" runat="server" Text="" Visible="false"></asp:Label>
            <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:Button ID="ButtonCargar" runat="server" Text="Cargar" OnClick="ButtonCargar_Click" />
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:GridView ID="GridView1" runat="server" Width="100%" AllowPaging="True" PageSize="20"
                AutoGenerateColumns="false">
                <Columns>
                    <asp:BoundField DataField="UserName" HeaderText="Usuario" />
                    <asp:BoundField DataField="Email" HeaderText="Email" />
                </Columns>
            </asp:GridView>
        </td>
    </tr>
    
    <tr>
        <td>
            Contraseña:
        </td>
        <td>
            <asp:TextBox ID="TextBoxPassword1" runat="server" TextMode="Password" ValidationGroup="Password"></asp:TextBox>
        </td>
</tr>
<tr>
        <td>
            Verificar Contraseña:
        </td>

        <td>
            <asp:TextBox ID="TextBoxPassword2" runat="server" TextMode="Password" ValidationGroup="Password"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:Button ID="ButtonCrear" runat="server" Text="CrearUsuarios" OnClick="ButtonCrear_Click" ValidationGroup="Password" />
            <asp:CompareValidator ID="CompareValidatorPassword" runat="server" 
                ErrorMessage="Las contraseñas no son iguales" 
                ControlToCompare="TextBoxPassword2" ControlToValidate="TextBoxPassword1" 
                ValidationGroup="Password"></asp:CompareValidator> </td>
    </tr>
    <tr>
    <td>
    <asp:Label runat="server" Id="LabelCrear"></asp:Label>
    </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:GridView ID="GridView2" runat="server" Width="100%" AllowPaging="True" PageSize="20"
                AutoGenerateColumns="false">
                <Columns>
                    <asp:BoundField DataField="UserName" HeaderText="Usuario" />
                    <asp:BoundField DataField="Email" HeaderText="Email" />
                    <asp:BoundField DataField="Result" HeaderText="Resultado" />
                </Columns>
            </asp:GridView>
        </td>
    </tr>
</table>
